/*
 * @Descripttion: axios封装
 * @version: 
 * @Author: 张敬坤
 * @Date: 2023-08-22 09:20:25
 * @LastEditors: Jikel
 * @LastEditTime: 2023-08-22 09:55:32
 */
import axios from 'axios'

const request = axios.create({
    baseURL: 'http://pcapi-xiaotuxian-front-devtest.itheima.net',
    timeout: 3000
})

// 请求拦截器
request.interceptors.request.use(config => {
    return config
}, e => Promise.reject(e))

// 响应式拦截器
request.interceptors.response.use(res => res.data, e => {
    return Promise.reject(e)
})


export default request